<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>产品管理 - 管理系统</title>
    <link rel="stylesheet" href="css/http_cdn.jsdelivr.net_npm_bootstrap-icons@1.10.0_font_bootstrap-icons.css">
    <style>
        :root {
            --primary-color: #3498db;
            --secondary-color: #2c3e50;
            --accent-color: #e74c3c;
            --light-color: #ecf0f1;
            --dark-color: #34495e;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }

        body {
            background-color: #f5f7fa;
            color: #333;
            padding: 20px;
        }

        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }

        .page-title {
            font-size: 24px;
            font-weight: 600;
            color: var(--secondary-color);
        }

        .btn {
            padding: 8px 16px;
            border-radius: 4px;
            border: none;
            cursor: pointer;
            font-size: 14px;
            display: inline-flex;
            align-items: center;
            transition: all 0.3s;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-primary:hover {
            background-color: #2980b9;
        }

        .btn i {
            margin-right: 5px;
        }

        .card {
            background-color: white;
            border-radius: 6px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            margin-bottom: 20px;
            overflow: hidden;
        }

        .card-header {
            padding: 15px 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .card-title {
            font-weight: 600;
            color: var(--dark-color);
        }

        .card-body {
            padding: 20px;
        }

        .table {
            width: 100%;
            border-collapse: collapse;
        }

        .table th, .table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }

        .table th {
            background-color: #f8f9fa;
            color: var(--dark-color);
            font-weight: 600;
        }

        .table tr:hover {
            background-color: #f8f9fa;
        }

        .badge {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
        }

        .badge-success {
            background-color: #d4edda;
            color: #155724;
        }

        .badge-warning {
            background-color: #fff3cd;
            color: #856404;
        }

        .badge-danger {
            background-color: #f8d7da;
            color: #721c24;
        }

        .action-btns .btn {
            padding: 5px 10px;
            margin-right: 5px;
            font-size: 12px;
        }

        .search-box {
            display: flex;
            margin-bottom: 20px;
        }

        .search-box input {
            flex: 1;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 4px 0 0 4px;
            outline: none;
        }

        .search-box button {
            padding: 10px 15px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
        }

        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 20px;
        }

        .pagination a {
            padding: 8px 16px;
            margin: 0 5px;
            border: 1px solid #ddd;
            color: var(--primary-color);
            text-decoration: none;
            border-radius: 4px;
        }

        .pagination a.active {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        .pagination a:hover:not(.active) {
            background-color: #f1f1f1;
        }
    </style>
</head>
<body>
<div class="page-header">
    <h1 class="page-title"><i class="bi bi-box-seam"></i> 产品管理</h1>
    <button class="btn btn-primary" onclick="showAddProductModal()">
        <i class="bi bi-plus-lg"></i> 添加产品
    </button>
</div>

<div class="search-box">
    <input type="text" placeholder="搜索产品名称、SKU或分类...">
    <button><i class="bi bi-search"></i> 搜索</button>
</div>

<div class="card">
    <div class="card-header">
        <h3 class="card-title">产品列表</h3>
        <div>
            <select style="padding: 5px; border-radius: 4px; border: 1px solid #ddd;">
                <option>所有分类</option>
                <option>电子产品</option>
                <option>服装</option>
                <option>家居用品</option>
            </select>
        </div>
    </div>
    <div class="card-body">
        <table class="table">
            <thead>
            <tr>
                <th>ID</th>
                <th>产品图片</th>
                <th>产品名称</th>
                <th>SKU</th>
                <th>分类</th>
                <th>价格</th>
                <th>库存</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>1001</td>
                <td><img src="https://via.placeholder.com/40" style="width:40px;height:40px;border-radius:4px;"></td>
                <td>智能手表 Pro</td>
                <td>SKU-2023001</td>
                <td>电子产品</td>
                <td>¥1,299.00</td>
                <td>156</td>
                <td><span class="badge badge-success">上架中</span></td>
                <td class="action-btns">
                    <button class="btn" style="background-color:#e3f2fd;color:#1976d2;"><i class="bi bi-pencil"></i></button>
                    <button class="btn" style="background-color:#ffebee;color:#d32f2f;"><i class="bi bi-trash"></i></button>
                </td>
            </tr>
            <tr>
                <td>1002</td>
                <td><img src="https://via.placeholder.com/40" style="width:40px;height:40px;border-radius:4px;"></td>
                <td>无线蓝牙耳机</td>
                <td>SKU-2023002</td>
                <td>电子产品</td>
                <td>¥399.00</td>
                <td>89</td>
                <td><span class="badge badge-success">上架中</span></td>
                <td class="action-btns">
                    <button class="btn" style="background-color:#e3f2fd;color:#1976d2;"><i class="bi bi-pencil"></i></button>
                    <button class="btn" style="background-color:#ffebee;color:#d32f2f;"><i class="bi bi-trash"></i></button>
                </td>
            </tr>
            <tr>
                <td>1003</td>
                <td><img src="https://via.placeholder.com/40" style="width:40px;height:40px;border-radius:4px;"></td>
                <td>男士休闲衬衫</td>
                <td>SKU-2023003</td>
                <td>服装</td>
                <td>¥199.00</td>
                <td>0</td>
                <td><span class="badge badge-danger">缺货</span></td>
                <td class="action-btns">
                    <button class="btn" style="background-color:#e3f2fd;color:#1976d2;"><i class="bi bi-pencil"></i></button>
                    <button class="btn" style="background-color:#ffebee;color:#d32f2f;"><i class="bi bi-trash"></i></button>
                </td>
            </tr>
            <tr>
                <td>1004</td>
                <td><img src="https://via.placeholder.com/40" style="width:40px;height:40px;border-radius:4px;"></td>
                <td>智能空气净化器</td>
                <td>SKU-2023004</td>
                <td>家居用品</td>
                <td>¥1,899.00</td>
                <td>23</td>
                <td><span class="badge badge-warning">即将售罄</span></td>
                <td class="action-btns">
                    <button class="btn" style="background-color:#e3f2fd;color:#1976d2;"><i class="bi bi-pencil"></i></button>
                    <button class="btn" style="background-color:#ffebee;color:#d32f2f;"><i class="bi bi-trash"></i></button>
                </td>
            </tr>
            <tr>
                <td>1005</td>
                <td><img src="https://via.placeholder.com/40" style="width:40px;height:40px;border-radius:4px;"></td>
                <td>无线充电器</td>
                <td>SKU-2023005</td>
                <td>电子产品</td>
                <td>¥129.00</td>
                <td>342</td>
                <td><span class="badge badge-success">上架中</span></td>
                <td class="action-btns">
                    <button class="btn" style="background-color:#e3f2fd;color:#1976d2;"><i class="bi bi-pencil"></i></button>
                    <button class="btn" style="background-color:#ffebee;color:#d32f2f;"><i class="bi bi-trash"></i></button>
                </td>
            </tr>
            </tbody>
        </table>

        <div class="pagination">
            <a href="#">&laquo;</a>
            <a href="#" class="active">1</a>
            <a href="#">2</a>
            <a href="#">3</a>
            <a href="#">&raquo;</a>
        </div>
    </div>
</div>

<script>
    function showAddProductModal() {
        alert("这里会显示添加产品的模态框");
        // 实际应用中这里应该是一个模态框，包含表单字段如产品名称、描述、价格、库存等
    }
</script>
</body>
</html>